package com.maven.front.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class EduCourse implements java.io.Serializable{
    private Integer courseId;

    private String courseName;

    private Integer isAvaliable;

    private Integer subjectId;

    private Integer subjectLink;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date addTime;

    private BigDecimal sourcePrice;

    private BigDecimal currentPrice;

    private String title;

    private Integer lessionNum;

    private String logo;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    private Integer pageBuycount;

    private Integer pageViewcount;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    private Integer losetype;

    private String loseTime;

    private Integer sequence;

    private BigDecimal courseGrossIncome;

    private String context;

    @Override
    public String toString() {
        return "EduCourse{" +
                "courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", isAvaliable=" + isAvaliable +
                ", subjectId=" + subjectId +
                ", subjectLink='" + subjectLink + '\'' +
                ", addTime=" + addTime +
                ", sourcePrice=" + sourcePrice +
                ", currentPrice=" + currentPrice +
                ", title='" + title + '\'' +
                ", lessionNum=" + lessionNum +
                ", logo='" + logo + '\'' +
                ", updateTime=" + updateTime +
                ", pageBuycount=" + pageBuycount +
                ", pageViewcount=" + pageViewcount +
                ", endTime=" + endTime +
                ", losetype=" + losetype +
                ", loseTime='" + loseTime + '\'' +
                ", sequence=" + sequence +
                ", courseGrossIncome=" + courseGrossIncome +
                ", context='" + context + '\'' +
                '}';
    }
}